package org.contato.service.impl;

import org.contato.dao.UsuarioDAO;
import org.contato.entity.Usuario;
import org.contato.service.UsuarioService;
import org.sharkness.business.support.ModelServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@SuppressWarnings("serial")
@Service(value = "usuarioService")
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class UsuarioServiceImpl extends ModelServiceImpl<Usuario, UsuarioDAO> implements UsuarioService {

	@Autowired
	public void setUsuarioDAO(UsuarioDAO usuarioDAO) {
		this.setDefaultDAO(usuarioDAO);
	}

}